package disjunction.examples.entities
{
	import disjunction.core.*;
	import disjunction.core.geom.Vector2;

	/**
	 *
	 *
	 * @author Nick Wiggill
	 */
	
	public class DemoEntityModel implements IEntityPositionModel
	{
		//Variables with upper case names are excluded from serialisation.
		public static const TYPE_BOUNCER:uint = 0;
		public static const TYPE_DANCER:uint = 1;
		public static const TYPE_WANDERER:uint = 2;
		public static const TYPE_JITTERER:uint = 3;
		
		public var position:Vector2 = new Vector2();
		public var motion:Vector2 = new Vector2();
		public var radius:Number;
		public var type:int;
		
		public function get x():Number
		{
			return position.x;
		}
		public function get y():Number
		{
			return position.y;
		}
		public function get z():Number
		{
			return 0;
		}
		public function get rotationX():Number
		{
			return 0;
		}
		public function get rotationY():Number
		{
			return 0;
		}
		public function get rotationZ():Number
		{
			return rotation_;
		}
		public function get rotation():Number
		{
			return rotationZ;
		}
		/*
		public function get scaleX():Number
		{
			return 1;
		}
		public function get scaleY():Number
		{
			return 1;
		}
		public function get scaleZ():Number
		{
			return 1;
		}
		*/
	}
}